package com.lichongbing.lyoggl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lichongbing.lyoggl.model.Tags;
import com.lichongbing.lyoggl.service.TagsService;
import com.lichongbing.lyoggl.mapper.TagsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class TagsServiceImpl extends ServiceImpl<TagsMapper, Tags>
    implements TagsService{

    @Autowired
    private TagsMapper tagsMapper;

    @Override
    public List<Tags> getTagsByUserId(String userid) {

        return tagsMapper.getTagsByUserId(userid);

    }

    @Override
    public int deleteByUserid(String userid) {
        return tagsMapper.deleteByUserid(userid);

    }


}




